<include file="Public:header" />
<div class="page-member subpage">
    <div class="form-header">
        <div>
            <div class="line1">
                <div class="fl"><h3>审批单位列表</h3></div>
                <div class="fr">
                    <form class="search-form" method="post" action="">
                        <span>查询条件:</span>
                        <select name="field">
                            <option value="name" <if condition="$filter.field eq 'name'">selected="selected"</if>>单位名称</option>
                            <option value="phone" <if condition="$filter.field eq 'phone'">selected="selected"</if>>联系电话</option>
                            <option value="type" <if condition="$filter.field eq 'type'">selected="selected"</if>>单位类型</option>
                        </select>
                        <input name="value" value="{$filter.value}" type="text" placeholder="输入关键字按回车" />
                        <input name="page" value="{$filter.page}" type="hidden" />
                        <input name="order_field" value="{$filter.order_field}" type="hidden" />
                        <input name="order_sort" value="{$filter.order_sort}" type="hidden" />
                        <button class="btn-normal" type="submit">查 询</button>
                    </form>
                </div>
            </div>
            <div class="line2">
                <div class="fl form-btn-group">
                    <in name="$x|default='03-03-08'" value="$rightsCode">
                        <button onclick="location.href='/admin/company/add'" class="btn-create btn-highlight">新 建</button>
                        <else />
                        <button disabled="disabled" class="btn-save btn-disable">新 建</button>
                    </in>
                </div>
                <div class="fl form-btn-more">
                    <button class="btn-normal btn-more">更多操作<i class="drop-down"></i></button>
                    <ul class="more-action hidden">
                        <in name="$x|default='03-03-08'" value="$rightsCode">
                            <li><a onclick="action_del();" href="javascript:void(0);">删 除</a></li>
                        </in>
                    </ul>
                </div>
                <div class="fr form-search-count">
                    <span class="offset">({$page.from}-{$page.to})</span>
                    <span class="total">共{$page.total}条</span>
                    <button onclick="PageJump({$page.prevPage});" class="btn-normal">上一页</button>
                    <button onclick="PageJump({$page.nextPage});" class="btn-normal">下一页</button>
                </div>
            </div>
        </div>
    </div>
    <div class="form-box">
        <table class="list">
            <thead>
                <tr>
                    <th><input id="select-all" type="checkbox" /></th>
                    <th class="list-header" field="name" sort="{$filter.order_sort}">
                        单位名称<if condition="$filter.order_field eq 'name'"><i class="icon-{$filter.order_sort}"></i></if>
                    </th>
                    <th class="list-header" field="type" sort="{$filter.order_sort}">
                        单位类型<if condition="$filter.order_field eq 'type'"><i class="icon-{$filter.order_sort}"></i></if>
                    </th>
                    <th class="list-header" field="type" sort="{$filter.order_sort}">
                        业务辖区<if condition="$filter.order_field eq 'type'"><i class="icon-{$filter.order_sort}"></i></if>
                    </th>
                    <th class="list-header" field="phone" sort="{$filter.order_sort}">
                        联系电话<if condition="$filter.order_field eq 'phone'"><i class="icon-{$filter.order_sort}"></i></if>
                    </th>
                    <th class="list-header" field="addr" sort="{$filter.order_sort}">
                        通讯地址<if condition="$filter.order_field eq 'addr'"><i class="icon-{$filter.order_sort}"></i></if>
                    </th>
                    <th class="list-header" field="linkman" sort="{$filter.order_sort}">
                        联系人<if condition="$filter.order_field eq 'linkman'"><i class="icon-{$filter.order_sort}"></i></if>
                    </th>
                    <th field="remarks" sort="{$filter.order_sort}">
                        备注<if condition="$filter.order_field eq 'remarks'"><i class="icon-{$filter.order_sort}"></i></if>
                    </th>
                </tr>
            </thead>
            <tbody>
                <volist name="list" id="vo" key="index">
                    <tr class="company-info" offset="{$vo.offset}" data-id="{$vo.id}">
                        <td class="checkbox-cell"><input class="checkbox" data-id="{$vo.id}" type="checkbox" /></td>
                        <td>{$vo.name}</td>
                        <td>{$vo.type}</td>
                        <td>{$vo.area_name}</td>
                        <td>{$vo.phone}</td>
                        <td>{$vo.addr}</td><td>{$vo.linkman}</td>
                        <td>{$vo.remarks}</td>
                    </tr>
                </volist>
            </tbody>
        </table>
    </div>
</div>
<script src="__JS__/company.js?v=0.1" type="text/javascript" ></script>
<include file="Public:footer" />

